home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Libris Britannia 4
/
science library(b).zip
/
science library(b)
/
PROGRAMM
/
DB_CLIPP
/
0669.ZIP
/
ENCRYPT.PRG
< prev
next >
Wrap
Text File
|
1985-12-30
|
896b
|
22 lines
* PROGRAM.....ENCRYPT.PRG
* AUTHOR......MIKE COTICCHIO
* NOTES.......Encryption routine for SETPASS.PRG
parameters oldword,newword
store len(oldword) to loopcnt,encodekey
store 0 to currletter
store space(1) to newword
**** The password is parsed letter by letter, and the ASCII value ****
**** of the letter is increased by a value equal to the size of ****
**** the password. The new ASCII value is then converted back to ****
**** a character, and the new character is concatenated onto the ****
**** encrypted password ****
do while currletter < loopcnt
currletter = currletter+1
store asc(substr(oldword,currletter)) + encodekey to newletter
newword = trim(newword) + chr(newletter)
enddo
return